<!DOCTYPE html>
<html>
<head>
<title>申请列表</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/font-awesome.min.css">
<link rel="stylesheet" href="/plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet" href="/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="/css/main.css">
<script src="/libs/jquery.min.js"></script>
<script src="/plugins/layer/layer.js"></script>
<script src="/libs/bootstrap.min.js"></script>
<script src="/libs/vue.min.js"></script>
<script src="/plugins/jqgrid/grid.locale-cn.js"></script>
<script src="/plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="/plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="/js/common.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
	<div>
		<div class="grid-btn">
			<a class="btn btn-default" @click="add">新增</a>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
	<div id="addNotice" style="display: none;">
		<form class="form-horizontal">
			<div class="form-group">
				<div class="form-group">
					<div class="form-group">
						<div class="col-sm-2 control-label" v-model="form.title">标题</div>
						<div class="col-sm-10">
							<input type="text" class="form-control"  placeholder="请输入标题" v-model="form.title"  required>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-2 control-label">目标用户</div>
						<div class="col-sm-10">
							<select class="form-control"  v-model="form.level">
								<option value="3" checked="checked">所有用户</option>
								<option value="0" >单个用户</option>
								<option value="1" >试客</option>
								<option value="2" >商家</option>
							</select>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-2 control-label">单用户选择</div>
						<div class="col-sm-10">
							<select class="form-control" v-model="form.owner" v-model="form.owner">
								<option v-for ="item in userList" :value ="item.id" >{{item.username+' : '+item.mobile}} </option>
							</select>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-2 control-label">正文</div>
						<div class="col-sm-10">
						<iframe id="description" frameborder=0 width="100%" height=500 marginheight=0 marginwidth=0 scrolling=no
								src="/libs/kindeditor/kindEditor.htm"></iframe>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>

<script src="/js/manager/notice.js"></script>
</body>
</html>